/*
 * @Description: 
 * @Version: 2.0
 * @Autor: zhengzx
 * @Date: 2021-11-21 12:22:52
 * @LastEditors: 郑灶欣
 * @LastEditTime: 2021-12-06 09:57:12
 */
import Cookies from 'js-cookie'

const TokenKey = 'koga_token'

export function getToken() {
    // return 'eyJhbGciOiJIUzI1NiIsIlR5cGUiOiJKd3QiLCJ0eXAiOiJKV1QifQ.eyJleHBpcmVzIjoxNjM4MTY2MzkwMTM4LCJqc29uRGF0YSI6IntcImFjY291bnRJZFwiOjEsXCJncmFkZUlkXCI6MCxcInVzZXJJZFwiOjEsXCJ1c2VyVHlwZVwiOjF9In0.nz0EjG6YVQcEtPUP_4-SMY-h-xIvzAgvrGSe_245aKA'
    return Cookies.get(TokenKey)
}

export function setToken(token) {
    return Cookies.set(TokenKey, token)
}

export function removeToken() {
    return Cookies.remove(TokenKey)
}